package com.company.creational.factory_pattern.simple_factory_pattern.client;

import com.company.creational.factory_pattern.simple_factory_pattern.factory.ChartFactory;
import com.company.creational.factory_pattern.simple_factory_pattern.product.Chart;

/**
 * @ClassName Client
 * @Author tiezheng.han
 * @Date 2020/8/26 10:38
 **/
public class Client {

    public static void main(String[] args) {
        Chart chart;
        chart = ChartFactory.getChart("histogram");
        chart.display();
    }
}
